<?php
defined('ROOTPATH') OR exit('Forbidden');

class output {

    public static function api($ret, $msg, $data) {
        $output = array(
            'ret' => $ret,
            'msg' => $msg,
            'data' => $data
        );
        echo json_encode($output);
    }
}
